# -*- coding: utf-8 -*-
"""
@Project: Msptest
@Author: 余振新
@File name: 会议审核.py
@Create time: 2023/7/10 15:55
"""
import time

from business.首页.病例征集系统.病例列表.病例列表_医院组 import RequestCase
from business.首页.病例征集系统.病例审核.公共 import Public
from business.首页.病例征集系统.导航菜单 import Menu
from business.首页.登录页 import Login
from business.首页.聚合页 import Home
from common.base_action import BaseAction
from common.base_driver import BaseDriver
from common.gol import get_value
from common.log import INFO
from page.首页.病例征集系统.病例审核 import 审核页
from page.首页.病例征集系统 import 导航菜单


class ReviewMeeting(BaseAction):
    def __init__(self, driver):
        super().__init__(driver)  # 调用父类的 __init__ 方法来初始化实例变量

    def 病例一审_审核通过(self):
        public = Public(self.driver)
        public.进入审核页面(导航菜单.病例列表_医院组)
        public.审核操作()
        return self.is_element_exist(审核页.断言_病例申请_一审核通过)


if __name__ == '__main__':
    BaseDriver().get_driver(_browser="edge", _url="https://test-home.cxjk.com/#/center_home", _cache=False)
    driver = get_value("driver")
    Login(driver).login_唐鹏玥()
    RequestCase(driver).新增_病例_医院组()
    driver.quit()
    BaseDriver().get_driver(_browser="edge", _url="https://test-home.cxjk.com/#/center_home", _cache=False)
    driver = get_value("driver")
    Login(driver).login_邹纲()
    ReviewMeeting(driver).病例一审_审核通过()
    driver.quit()

